package com.cqsw.bbs.mapper;

import com.cqsw.bbs.entity.User;
import org.apache.ibatis.annotations.Param;

public interface UserMapper {
    User queryUser(String username);
    int updateAvatar(@Param("avatarName") String avatarName,@Param("id") Integer id);
    int updatePassword(@Param("password") String password,@Param("id") Integer id);
    int queryNikeName(@Param("nickname")String nickname);
    int updateNikeName(@Param("nickname")String nickname,@Param("id") Integer id);
    int updateAllowUserDynamic(@Param("allowUserDynamic")String allowUserDynamic,@Param("id") Integer id);
    int addUser(User user);
}